<%@ page contentType="text/html;charset=UTF-8" language="java" trimDirectiveWhitespaces="true" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <title>荩美国际商城</title>
    <script src="/resources/js/jquery-1.8.1.min.js" type="text/javascript" ></script>
    <link type="text/css" href="/resources/js/loading/loading.css" rel="stylesheet"/>
    <script type="text/javascript" src="/resources/js/jquery.bgiframe.js"></script>
    <script type="text/javascript" src="/resources/js/loading/loading.js"></script>
<body>

<script type="text/javascript">
    var myloading = null;
    $(function(){
        var suc = '${suc}';
        if(suc=='false'){
            alert('${msg}');
            window.location.href = "/front/user/main";
        }else{
            myloading = new ol.loading({
                id : "main",
                msg : "获取用户信息中..."
            });

            myloading.show("获取用户信息中...");
            var orderId = '${orderId}';
            $.ajax({
                url:"/front/order/getAuthentication?ran="+Math.random(),
                type:"post",
                data:{
                    orderId:orderId
                },
                success:function(res){
                    myloading.hide();
                    if(res.success){
                        window.location.href = res.data;
                    }else{
                        alert(res.msg);
                    }
                },
                error:function(){

                }
            })
        }

    });


</script>

</body>
</html>